import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()){
            int size = scanner.nextInt();
            int sum = 0;
            int[] array = new int[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = scanner.nextInt();
                sum += array[i];
            }
            System.out.println(sum);
        }
    }
}
